import { CourseService } from "../CourseService";
import { Service, Inject } from "typedi";
import { CourseDao } from "../../dao/CourseDao";

@Service()
export class CourseServiceImpl implements CourseService{
	
	@Inject()
	private courseDao:CourseDao;
	
	public async getIndexCourse(): Promise<Array<Object>> {
		return await this.courseDao.getIndexCourse();
	}
	
	public async getCourseList(id: string): Promise<Array<Object>> {
		return await this.courseDao.getCourseListDao(id);
	}
	
	public async getClassList(): Promise<Array<Object>> {
		return await this.courseDao.getClassListDao();
	}
	
}